<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"  prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>后台信息管理</title>
	<link rel="stylesheet" href="../../css/main.css" type="text/css"></link>
	</head>
	<body>
	<div id="page_Header">
		
			<img src="${pageContext.request.contextPath }/img/logo2.png" height= "80px" width="200px">
		
		<div id="div_2">
		<a href="${pageContext.request.contextPath }/jsp/index.jsp" >前台</a>
		<span>当前账户：${username}</span>
		<a href="${pageContext.request.contextPath }/logout.action">退出</a>
		</div>	
	</div>
		
		<div id="page_Left">
			<ul class="nemu_1">
				<li ><span></span><h4>操作台</h4></li>
				<li onclick="display_1()"><span></span><h4>系统设置</h4></li>
				<li class="zhgl_cl" style="display: none;"><a href="${pageContext.request.contextPath}/queryUser.action" target="items_show"><em></em>账户管理</a></li>
				<li onclick="display_2()" class="cpgl_cl"><span></span><h4>产品管理</h4></li>
				<li class="cp_cl" style="display: none;"><a href="${pageContext.request.contextPath}/jsp/items/addItems.jsp" target="items_show"><em></em>添加产品</a></li>
				<li class="cp_cl"  style="display: none;"><a href="${pageContext.request.contextPath}/items/queryItems.action?pageNow=1&pageSize=12" target="items_show"><em></em>产品维护</a></li>
			</ul>
		</div>	
		<div id="page_Right">
			<iframe name="items_show" width="100%" height="570px" scrolling="no"
			frameborder="0"></iframe>
		</div>
		
	</body>
<script type="text/javascript">
	function display_1() {
		var li_e = document.getElementsByClassName("zhgl_cl");
		var i = li_e[0].style.display;
		if(i=="none"){li_e[0].style.display="block";}
		if(i=="block"){li_e[0].style.display="none";}
	} 
	
	function display_2(){
		var li_e = document.getElementsByClassName("cp_cl");
		var i = li_e[0].style.display;
		if(i=="none"){li_e[0].style.display="block";li_e[1].style.display="block";}
		if(i=="block"){li_e[0].style.display="none";li_e[1].style.display="none";}
	}
</script>	
</html>